package com.xzgj.fmmall.service;

import com.xzgj.fmmall.entity.UserAddr;
import com.xzgj.fmmall.vo.ResultVO;
import org.apache.ibatis.annotations.Param;

public interface UserAddrService {
    //根据用户id查询地址列表,此数据库的操作通过tkmapper实现
    public ResultVO listAddrByUserId(int userId);

    public ResultVO insertAddrByUserId(@Param("UserAddr") UserAddr userAddr);

    public ResultVO updateAddrByUserId(@Param("UserAddr") UserAddr userAddr);

    public ResultVO deleteAddrByAddrId(String addrId);

    public ResultVO setDefault(Integer aid,Integer uid,String username);
}
